<?php

namespace app\common\model;

use think\Model;

class ReportModel extends Model
{
    protected $table = 'report';
    protected $autoWriteTimestamp = 'timestamp';

    public function user()
    {
        return $this->belongsTo('UserModel', 'user_id', 'id');
    }

    public function project()
    {
        return $this->belongsTo('ProjectModel', 'detection_id', 'id');
    }

    public function orders()
    {
        return $this->belongsTo('OrderModel', 'order_id', 'id');
    }

}
